<?php
namespace app\model;
use app\validate\User as UserValidate;

class login  extends Common
{
    public function getlogin($data)
    {   $validate=new UserValidate();
            if(!$validate->check($data)){
            return  $this->message('400', $validate->getError());
    }
        $res=user::where()->select();
    }
}
